﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;

namespace BYServer.SocketEventArgs
{
    public class XSocketReciveEventArgs : EventArgs
    {
        public byte[] Data { get; private set; }
        public YUser user { get; private set; }
        public XSocketReciveEventArgs(byte[] data, YUser user)
        {
            this.Data = data;
            this.user = user;
        }
    }

    public class ReceiveFromMachineEventArgs : EventArgs
    {
        public byte[] Data { get; private set; }  
        MachineConnection machine_connection {get;set;}
        public ReceiveFromMachineEventArgs(byte[] data,MachineConnection machine)
        {
            this.Data = data;
            this.machine_connection = machine;
        }
    }

}
